package com.manage.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "borrow")
public class Borrow implements Serializable{
	
	private static final long serialVersionUID = -8010135537569121725L;
	
	@Id
	@Column(name = "borrowid", unique = true, nullable = false)
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int borrowid;
	@Column(name = "borcount", nullable = false )//借出数量
	private String borcount;
	@Column(name = "retcount")//归还数量
	private String retcount;
	@Column(name = "borunit", nullable = false)//借用单位
	private String borunit;
	@Column(name = "borunittype", nullable = false)//借用单位类型（外部，内部）
	private String borunittype;
	@Column(name = "contact", nullable = false)//联系人
	private String contact;
	@Column(name = "contel", nullable = false)//联系人手机
	private String contel;
	@Column(name = "bordate")//借用日期
	private Date bordate;
	@Column(name = "returndate")//归还日期
	private Date returndate;
	@Column(name = "note", nullable = false)
	private String note;
	@Column(name = "returnoperator", nullable = true)
	private String returnoperator;
	@Column(name = "borrowoperator", nullable = true)
	private String borrowoperator;
	@Column(name = "deviceid", nullable = false) 
	private String deviceid;

						
	public String getNote() {
		return note;
	}


	public void setNote(String note) {
		this.note = note;
	}


	public int getBorrowid() {
		return borrowid;
	}


	public void setBorrowid(int borrowid) {
		this.borrowid = borrowid;
	}
	


	public String getRetcount() {
		return retcount;
	}


	public void setRetcount(String retcount) {
		this.retcount = retcount;
	}



	public String getBorcount() {
		return borcount;
	}


	public void setBorcount(String borcount) {
		this.borcount = borcount;
	}


	public String getBorunit() {
		return borunit;
	}


	public void setBorunit(String borunit) {
		this.borunit = borunit;
	}


	public String getBorunittype() {
		return borunittype;
	}


	public void setBorunittype(String borunittype) {
		this.borunittype = borunittype;
	}


	public String getContact() {
		return contact;
	}


	public void setContact(String contact) {
		this.contact = contact;
	}


	public String getContel() {
		return contel;
	}


	public void setContel(String contel) {
		this.contel = contel;
	}


	public Date getBordate() {
		return bordate;
	}


	public void setBordate(Date bordate) {
		this.bordate = bordate;
	}


	public Date getReturndate() {
		return returndate;
	}


	public void setReturndate(Date returndate) {
		this.returndate = returndate;
	}


	public String getReturnoperator() {
		return returnoperator;
	}


	public void setReturnoperator(String returnoperator) {
		this.returnoperator = returnoperator;
	}


	public String getBorrowoperator() {
		return borrowoperator;
	}


	public void setBorrowoperator(String borrowoperator) {
		this.borrowoperator = borrowoperator;
	}


	public String getDeviceid() {
		return deviceid;
	}


	public void setDeviceid(String deviceid) {
		this.deviceid = deviceid;
	}

}
